<template>
  <div class="backView">
    <div class="backView">
      <img :src='icon' class="imgView"/>
      <p class="statusLabel" style="margin-bottom: 12px;">{{label}}</p>
    </div>

    <div class="flexCenterRow">
      <p class="black14">得分 ：</p>
      <p class="countLabel">{{score}}</p>
      <p class="grey14 marginLeft8">分</p>
    </div>
    <div class="flexCenterRow">
      <p class="black14">答对 ：</p>
      <p class="countLabel">{{rightCount}}</p>
      <p class="grey14 marginLeft8">题</p>
    </div>
    <div class="flexCenterRow">
      <p class="black14">答错 ：</p>
      <p class="countLabel">{{wrongCount}}</p>
      <p class="grey14 marginLeft8">题</p>
    </div>

    <!--    <p class="unanswered" v-if="unansweredCount>0">未作答 ：{{unansweredCount}} 题</p>-->

  </div>
</template>

<script>
  export default {
    props: ['icon', 'label', 'score', 'rightCount', 'wrongCount'],
  }
</script>
<style scoped>
  .backView {
    width: 100%;
    margin-top: 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .imgView {
    width: 62px;
    height: 62px;
  }

  .statusLabel {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
  }


  .black14 {
    font-size: 14px;
    color: #333333;
  }

  .grey14 {
    font-size: 14px;
    color: #999999;
  }

  .marginLeft8 {
    margin-left: 8px;
  }

  .flexCenterRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 24px;
  }

  .countLabel {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    width: 48px;
    text-align: end;
  }

  .unanswered {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    text-align: end;
    margin-top: 24px;
  }

</style>

